#ifndef HTTPWINDOW_H
#define HTTPWINDOW_H

#include <QtGui>
#include <QtNetwork>

class HttpWindow : public QDialog
{
Q_OBJECT
public:
	HttpWindow();
private slots:
	void downloadFile();
	void cancleDownload();
	void requestFinishedSlot(int, bool);
	void dataReadProgressSlot(int, int);
	void responseHeaderReceivedSlot(const QHttpResponseHeader &);
	void enableDownload();
private:
	QLabel *statusLabel;
	QLabel *urlLabel;
	QLineEdit *urlLineEdit;
	QProgressDialog *progressDialog;
	QPushButton *downloadButton;
	QHttp *http;
	QFile *file;
	int httpGetId;
	bool httpRequestAborted;

};

#endif
